package com.kkd.springbootproject.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * @author 14587
 * @date 2021/1/13 9:28
        */
@Controller
public class HellowController {
    @RequestMapping("/hello")
    public String hello(Model model){
        model.addAttribute("msg","hello,Springboot");
        model.addAttribute("users", Arrays.asList("dou","xin"));
        return "helloworld";
    }
}
